﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestHarness
{
    class Program
    {
        static void Main(string[] args)
        {
            NFL.Business.LiveScores ls = new NFL.Business.LiveScores();
            ls.GetLiveScores();


            var dt = ls.BuildWeekGrid();
            var dt2 = ls.FillWeekGrid(1,dt);
            var dt3 = ls.UpdateGridWinLossesWithScores(dt2);


            System.Data.DataTable finalTable;
            System.Data.DataView dv = dt3.DefaultView;
            dv.Sort = "wins desc, userid asc";
            finalTable = dv.ToTable();




            var hdrRow = ls.GetHeaderGamesRow();

            var theFinal = ls.MergeHeaderAndData(hdrRow, finalTable);

            

        }
    }
}
